package components.toolbar
{
	import capricornus.components.window.Window;
	
	import components.toolbar.item.ToolBarItemController;
	
	import flash.display.DisplayObjectContainer;
	import flash.display.Sprite;
	
	internal class ToolBarView extends Window
	{
		public var back:Sprite;
		public var toolItemController:ToolBarItemController;
		
		public function ToolBarView( owner:DisplayObjectContainer )
		{
			super( owner );
			init();
		}
		
		private function init():void
		{
			panel = new ToolBarPanel();
			addChild( panel );
			
			back = panel.getChildByName("back") as Sprite;
			
			toolItemController = new ToolBarItemController( panel.getChildByName("item") as Sprite );
		}
	}
}